Linear congruences and Chinese Remainder theorem